using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;



namespace HOPE {
	class Background: DrawableGameComponent, IDrawable {
		Game game;
		Texture2D texture;
		SpriteBatch spriteBatch;
		ContentManager content;
		string textureFile;
		/// <summary>
		/// 
		/// </summary>
		public Texture2D Texture { get { return texture; } }
		public string Name { get { return ((Texture)texture).Name; } }
		public override void Draw (GameTime gameTime/*, SpriteBatch spriteBatch*/) {
			base.Draw(gameTime);
			spriteBatch.Begin();

			// TODO: Add drawing procedure here
			spriteBatch.Draw(Texture, Vector2.Zero, Color.White);
			

			spriteBatch.End();

		}

		protected override void LoadContent () {
			base.LoadContent();
			texture = game.Content.Load<Texture2D>(textureFile);
		}

		public Background (Game game, string TextureFile)
			: base(game) {
				if(content==null)content = new ContentManager(this.Game.Services,"Content");
			this.game = game; this.textureFile = TextureFile;
		}

		public override void Update (GameTime gameTime) {
			base.Update(gameTime);

		}
	}
}
